package modele;

public class Plateau {
	
	private Case[][] plateau;
	private int typeJeu;
	
	public Plateau(int typeJeu) {
		this.typeJeu = typeJeu;
	}
	
	private void initPlateau() {
		int size = Regles.getNbCases(typeJeu) / 2;
		this.plateau = new Case[size][size];
		
		for(int y=0; y<size; y++) {
			for(int x=0; x<size; x++) {
				this.plateau[y][x] = new Case(x, y, (x+y%2), null);
			}
		}
	}
	
	private class Case {
		
		private boolean couleur; // Couleur de la case : blanc ou noir
		private int x;
		private int y;
		private Pion pion;
		
		public Case(int x, int y, boolean couleur, Pion p) {
			this.x = x;
			this.y = y;
			this.couleur = couleur;
			this.pion = p;
		}
	}
}
